import { createStore, applyMiddleware, combineReducers } from "redux";
import thunk from "redux-thunk";
import countReducer from "./reducers/count";
import personReducer from "./reducers/person";

const allReducer = combineReducers({
  countReducer: countReducer,
  personReducer: personReducer,
});

const store = createStore(allReducer, applyMiddleware(thunk));

export default store;
